#ifndef POLICY_1_H
#define POLICY_1_H

#include "exclude/exclude_policy.h"

class Policy1 : public exclude::ExcludePolicy
{
public:
    Policy1()
    {}
    virtual ~Policy1()
    {

    }

    bool execPolicy(task::TaskChain *task_chain) override
    {
        EASE_INFO("exec policy 1");
        static bool flag = true;
        if(flag)
        {
            flag = !flag;
            return true;
        }
        else
        {
            flag = !flag;
            return true;
        }
    }
};

#endif //POLICY_1_H
